<template>
  <div class="page">
    search's page
    <ul>
      <li v-for="(item,idx) in list" :key="idx">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      list: []
    };
  },
  async mounted() {

    let self = this;
    await axios.get("/user/list").then((res) => {
      console.log(res)
       self.list = res.data;
      //  console.log("self", self)
    })

    // let self = this;
    // let {
    //   status,
    //   data: { list }
    // } = await axios.get("/user/list")
    // console.log("list", list);
    // console.log("status",status)
    // if (status === 200) {
    //   self.list = list;
    //   console.log("self",self)
    // }
  }
};
</script>

<style>
</style>
